var express = require("express");
var router = express.Router();

const {
  getCarOwnersList,
  getCarOwnerId,
  getCarOwnerIdCard,
  changeOwnerToOwner,
  getUsersList,
  changeUserToOwner,
  getUserToOwner,
  getUsersCount,
  getOwnersCount,
} = require("../controllers/users");

router.post("/getCarOwnersList", getCarOwnersList);
router.post("/getCarOwnerId", getCarOwnerId);
router.post("/getCarOwnerIdCard", getCarOwnerIdCard);
router.post("/changeOwnerToOwner", changeOwnerToOwner);
//==============================================================
router.post("/getUsersList", getUsersList);
router.post("/changeUserToOwner", changeUserToOwner);
router.post("/getUserToOwner", getUserToOwner);
router.post("/getUsersCount", getUsersCount);
router.post("/getOwnersCount", getOwnersCount);

module.exports = router;
